﻿using System;
using System.Collections.Generic;

namespace 观察者模式
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime dt = DateTime.Now;
            Console.WriteLine(dt.DayOfWeek);
            string week=System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(dt.DayOfWeek);

            WeatherData weatherData = new WeatherData();
            CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
            //ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
            List<float> forecastTemperatures = new List<float>();

            forecastTemperatures.Add(22f);
            forecastTemperatures.Add(-1f);
            forecastTemperatures.Add(9f);
            forecastTemperatures.Add(23f);
            forecastTemperatures.Add(27f);
            forecastTemperatures.Add(30f);
            forecastTemperatures.Add(10f);

            weatherData.setMeasurements(22f, 0.8f, 1.2f, forecastTemperatures) ;

        }
    }
}
